<template>
  <div class="course home-column">
    <home-title title="推荐课程" @more="handleMore"></home-title>
    <edu-course-list
      :courseList="courseList"
      :scribing-price="false"
      @next="handleNext"
    ></edu-course-list>
  </div>
</template>

<script>
import HomeTitle from './homeTitle.vue'
import EduCourseList from '@/components/EduCourseList'
export default {
  components: {
    HomeTitle,
    EduCourseList
  },
  props: {
    courseList: {
      type: Array
    }
  },
  methods: {
    handleMore() {
      this.$router.push({ path: '/course' })
    },
    // 下一页
    handleNext(item) {
      this.$router.push({ path: '/course/' + item.id })
    }
  }
}
</script>

<style lang="scss" scoped>
@import '@/styles/hover.scss';
.course {
  padding: 30px 15px 0;
  ::v-deep .course-list {
    .item {
      border: 1px solid $border-color-divider;
    }
  }
}
</style>
